Add ellipsis indexing support in normal mode - #3198
Conversation
826216b to
bebd9ad
Compare
bebd9ad to
78fdb79
Compare
|
@claude review these changes, it it safe to mutate the AST in-place or will that cause issues? Is there a cleaner way to do it? |
|
Claude finished @jansel's task in 7m 26s —— View job Review: ellipsis indexing in normal mode
@jansel Here's my analysis of the two questions. Is it safe to mutate the AST in place?Yes, in this codebase it's safe — but for reasons worth making explicit, because the safety is load-bearing and not obvious from the diff.
The real cost is altitude: Is there a cleaner way?The natural instinct — "do it as a separate
My recommendation: the AST-mutation approach is acceptable given the Correctness issues in
|
Summary:
Adds ellipsis support in kernel tensor indexing by expanding it to equivalent full-slice AST nodes during type propagation.
Test:
pytest test/test_indexing.py -k test_ellipsis_indexing -x -vv -s